<?php

class admin_template_system_config_system extends admin_theme
{


	protected function center()
	{
	    $config = $this->get('config');
	    
        $ui_editor = bone::get_admin_ui('editor');
		$ui_editor->set_action('./?action=system.config.system_save');
		$ui_editor->set_fields(
            array(
            	'type'=>'radio', 
            	'name'=>'offline', 
            	'label'=>'启用/关闭网站', 
            	'value'=>$config->offline,
                'options'=>array('0'=>'启用', '1'=>'关闭')
            ),
            array(
            	'type'=>'richtext', 
            	'name'=>'offline_message', 
            	'label'=>'关闭网站时提示信息', 
            	'value'=>$config->offline_message, 
            	'width'=>'500px', 
            	'height'=>'45px'
            ),
            array(
            	'type'=>'text', 
            	'name'=>'site_name', 
            	'label'=>'网站名称', 
            	'value'=>$config->site_name
            ),
            array(
            	'type'=>'radio', 
            	'name'=>'sef', 
            	'label'=>'启用Apache网址重写', 
            	'value'=>$config->sef,
                'options'=>array('1'=>'启用', '0'=>'关闭')
            )
        );
		$ui_editor->display();
	}	

}
?>